package com.gupao.gupaoeduvippattern.javaBase.thread.day01;

/**
 * @author Administrator
 * @date 2020-12-04 14:28
 */
public class ThreadDemo {

    public static void main(String[] args) {
        System.out.println("主线程1");
        MyThread mt = new MyThread();
        mt.start();
        System.out.println("主线程2");
    }


}

class MyThread extends Thread{

    public void run(){
        System.out.println(getName() + "启动了线程");
    }


}

